Optimal. Leaf size=311 \[ \frac {2 (a-b) b \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.31, antiderivative size = 311, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4307, 2875,
3077, 2895, 3073} \begin {gather*} \frac {2 b (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2875
Rule 2895
Rule 3073
Rule 3077
Rule 4307
Rubi steps
\begin {align*} \int \sqrt {a+b \cos (c+d x)} \sec ^{\frac {5}{2}}(c+d x) \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+b \cos (c+d x)}}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {1}{3} \left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {b}{2}+\frac {1}{2} a \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {1}{3} \left ((a-b) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx+\frac {1}{3} \left (b \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 (a-b) b \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 14.43, size = 301, normalized size = 0.97 \begin {gather*} -\frac {2 \cos ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {\sec (c+d x)} \left (2 b (a+b) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )-2 a (a+b) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )+b \cos (c+d x) (a+b \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 a d \sqrt {a+b \cos (c+d x)}}+\frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {2 b \sin (c+d x)}{3 a}+\frac {2}{3} \tan (c+d x)\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(887\) vs.
\(2(277)=554\).
time = 0.34, size = 888, normalized size = 2.86
method | result | size |
default | \(\text {Expression too large to display}\) | \(888\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\sqrt {a+b\,\cos \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________